package com.lantian.uavmaterial.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lantian.uavmaterial.mapper.UavPayloadCameraMapper;
import com.lantian.uavmaterial.domain.UavPayloadCamera;
import com.lantian.uavmaterial.service.IUavPayloadCameraService;

/**
 * 任务载荷Service业务层处理
 * 
 * @author lantian
 * @date 2025-11-06
 */
@Service
public class UavPayloadCameraServiceImpl implements IUavPayloadCameraService 
{
    @Autowired
    private UavPayloadCameraMapper uavPayloadCameraMapper;

    /**
     * 查询任务载荷
     * 
     * @param payloadCameraId 任务载荷主键
     * @return 任务载荷
     */
    @Override
    public UavPayloadCamera selectUavPayloadCameraByPayloadCameraId(String payloadCameraId)
    {
        return uavPayloadCameraMapper.selectUavPayloadCameraByPayloadCameraId(payloadCameraId);
    }

    /**
     * 查询任务载荷列表
     * 
     * @param uavPayloadCamera 任务载荷
     * @return 任务载荷
     */
    @Override
    public List<UavPayloadCamera> selectUavPayloadCameraList(UavPayloadCamera uavPayloadCamera)
    {
        return uavPayloadCameraMapper.selectUavPayloadCameraList(uavPayloadCamera);
    }

    /**
     * 新增任务载荷
     * 
     * @param uavPayloadCamera 任务载荷
     * @return 结果
     */
    @Override
    public int insertUavPayloadCamera(UavPayloadCamera uavPayloadCamera)
    {
        return uavPayloadCameraMapper.insertUavPayloadCamera(uavPayloadCamera);
    }

    /**
     * 修改任务载荷
     * 
     * @param uavPayloadCamera 任务载荷
     * @return 结果
     */
    @Override
    public int updateUavPayloadCamera(UavPayloadCamera uavPayloadCamera)
    {
        return uavPayloadCameraMapper.updateUavPayloadCamera(uavPayloadCamera);
    }

    /**
     * 批量删除任务载荷
     * 
     * @param payloadCameraIds 需要删除的任务载荷主键
     * @return 结果
     */
    @Override
    public int deleteUavPayloadCameraByPayloadCameraIds(String[] payloadCameraIds)
    {
        return uavPayloadCameraMapper.deleteUavPayloadCameraByPayloadCameraIds(payloadCameraIds);
    }

    /**
     * 删除任务载荷信息
     * 
     * @param payloadCameraId 任务载荷主键
     * @return 结果
     */
    @Override
    public int deleteUavPayloadCameraByPayloadCameraId(String payloadCameraId)
    {
        return uavPayloadCameraMapper.deleteUavPayloadCameraByPayloadCameraId(payloadCameraId);
    }

    /**
     * 根据无人机id查询任务载荷信息
     *
     * @param uavId 无人机id
     * @return 结果
     */
    @Override
    public UavPayloadCamera selectUavPayloadCameraByuavId(String uavId) {
        return uavPayloadCameraMapper.selectUavPayloadCameraByuavId(uavId);
    }

}
